package com.knowledge.graph.service;

import com.knowledge.graph.model.entity.User;
import com.knowledge.graph.model.vo.ResponseVO;

import java.io.IOException;

/**
 * @description: 课程有关的业务逻辑操作
 * @author jiwenlong
 * @date 2024/1/4 19:13
 * @version 1.0
 */
public interface GradeService {

    public ResponseVO createGrade(String name, String description, Integer teacherID);

    ResponseVO modifyGrade(Integer gradeID, String name, String description);

    ResponseVO removeGrade(Integer gradeID);

    ResponseVO queryGrade(Integer teacherID);

    ResponseVO modifyGradeOfCourse(Integer gradeID,Integer courseID);

    ResponseVO modifyGradeOfInvitationCode(Integer gradeID);

    ResponseVO createGradeAndUser(String text, User user);

    ResponseVO createGradeAndCourse(Long gradeId, Long courseId);

    ResponseVO queryClassByUser(Long user) throws IOException;
}
